
		**********************************************************
		** File: oecd.do										**
		** Paper: Human Trafficking Indicators: A New Dataset	**
		** Author: Richard Frank								**
		** Date: July 11, 2021									**
		** Task: Creating OECD membership dummy					**
 		**********************************************************
		
			
	version 16.1

		*** CREATING A DUMMY FOR OECD membership ***
		
	gen oecd=0
	label var oecd "OECD member (year t if joined t-1)" 
	replace oecd=. if year<1961
	
 	* AUSTRALIA	7 June 1971
	replace oecd=1 if ccode==900 & year> 1971 
	
 	* AUSTRIA	29 September 1961
	replace oecd=1 if ccode==305 & year>  1961
	
 	* BELGIUM	13 September 1961
	replace oecd=1 if ccode==211 & year>  1961
	
 	* CANADA	10 April 1961
	replace oecd=1 if ccode==20 & year> 1961 
	
 	* CHILE	7 May 2010
	replace oecd=1 if ccode==155 & year>  2010
	
 	* CZECH REPUBLIC 21 December 1995
	replace oecd=1 if ccode==316 & year>  1995
	
 	* DENMARK	30 May 1961
	replace oecd=1 if ccode==390 & year>  1961
	
 	* ESTONIA	9 December 2010
	replace oecd=1 if ccode==366 & year>  2010
	
 	* FINLAND	28 January 1969
	replace oecd=1 if ccode==375 & year>  1969
	
 	* FRANCE	7 August 1961
	replace oecd=1 if ccode==220 & year>  1961
	
 	* GERMANY	27 September 1961
	replace oecd=1 if ccode==255 & year>  1961
	
 	* GREECE	27 September 1961
	replace oecd=1 if ccode==350 & year>  1961
	
 	* HUNGARY	7 May 1996
	replace oecd=1 if ccode==310 & year>  1996
	
 	* ICELAND	5 June 1961
	replace oecd=1 if ccode==395 & year>  1961
 
 	* IRELAND	17 August 1961
	replace oecd=1 if ccode==205 & year>  1961
	
 	* ISRAEL	7 September 2010
	replace oecd=1 if ccode==666 & year>  2010
	
 	* ITALY	29 March 1962
	replace oecd=1 if ccode==325 & year>  1962
	
 	* JAPAN	28 April 1964
	replace oecd=1 if ccode==740 & year>  1964
	
 	* KOREA	12 December 1996
	replace oecd=1 if ccode==732 & year>  1996
	
 	* LATVIA	1 July 2016
	replace oecd=1 if ccode==367 & year>  2016
	
 	* LUXEMBOURG	7 December 1961
	replace oecd=1 if ccode==212  & year>  1961
	
 	* MEXICO	18 May 1994
	replace oecd=1 if ccode==70 & year>  1991
	
 	* NETHERLANDS	13 November 1961
	replace oecd=1 if ccode==210 & year>  1961
	
 	* NEW ZEALAND	29 May 1973
	replace oecd=1 if ccode==920 & year>  	1973
	
 	* NORWAY	4 July 1961
	replace oecd=1 if ccode==385 & year>  1961
	
 	* POLAND	22 November 1996
	replace oecd=1 if ccode==290 & year>  	1996
	
 	* PORTUGAL	4 August 1961
	replace oecd=1 if ccode==235 & year>  	1961
	
 	* SLOVAK REPUBLIC	14 December 2000
	replace oecd=1 if ccode==317 & year>  2000
	
 	* SLOVENIA	21 July 2010
	replace oecd=1 if ccode==349 & year>  2010
		
 	* SPAIN	3 August 1961
	replace oecd=1 if ccode==230 & year>  1961
		
 	* SWEDEN	28 September 1961
	replace oecd=1 if ccode==380 & year>  1961
		
 	* SWITZERLAND	28 September 1961
	replace oecd=1 if ccode==225 & year>  1961
		
 	* TURKEY	2 August 1961
	replace oecd=1 if ccode==640 & year>  1961
		
 	* UNITED KINGDOM	2 May 1961
	replace oecd=1 if ccode==200 & year>  1961
		
 	* UNITED STATES	12 April 1961	
	replace oecd=1 if ccode==2 & year>  1961
		
		
		
		
		
		
